A ‘leap day’ is February 29th, and is not the same as a daylight savings
time transition day (when the clock goes forwards or backwards by an
hour).
Fix a thinko/typo in my code comment.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3853>
(cherry picked from commit
856a0ffe2848bb82c86862764275c24c4ac6ddc4)
* Get the Unix timestamp (in real seconds since the epoch) for the start of
* today and the start of tomorrow.
*
- * To avoid problems due to 24:00-01:00 not existing on leap days,
- * arbitrarily say that the day starts at 03:00.
+ * To avoid problems due to 01:00-02:00 not existing (or existing twice) on
+ * daylight savings time transition days, arbitrarily say that the day
+ * starts at 03:00.
*
* @param {number} nowSecs ‘Current’ time to calculate from.
* @returns {number}